// Picture.h: interface for the Picture class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PICTURE_H__F67843E1_42C3_41A8_A0FC_30767966D776__INCLUDED_)
#define AFX_PICTURE_H__F67843E1_42C3_41A8_A0FC_30767966D776__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Image.h"

class CLASS_DECL_D AWTPicture : public Image  
{
DECLARE_DYNAMIC(AWTPicture)
public:
	AWTPicture();
	AWTPicture(LPTSTR file);
	AWTPicture(CString& file);
	virtual ~AWTPicture();

	virtual void paint(CDC* pDC, AWTCanvas* canvas);
	virtual CSize getSize();
	virtual BOOL loadImage();
	virtual BOOL isValid()
		{return (m_pPicture != NULL);}

private:
	
	void construct(CString& file)
	{
		m_pPicture = NULL;
		loadImage();
	}	

	IPicture* m_pPicture;
};

#endif // !defined(AFX_PICTURE_H__F67843E1_42C3_41A8_A0FC_30767966D776__INCLUDED_)
